YUI().use('dd-delegate', 'dd-drop-plugin', function(Y) {
    var del = new Y.DD.Delegate({
        container: '#demo',
        nodes: 'td'
        });
   
        del.on('drag:end', function(e) {
        del.get('currentNode').setStyles({
                top: 0,
                left: 0
            });
        });
   
        var drop = Y.one('#drop').plug(Y.Plugin.Drop);
    drop.drop.on('drop:hit', function(e) {
        if(e.drag.get('node').get('innerHTML') == 'George Washington') {
                drop.set('innerHTML', '<strong>' + e.drag.get('node').get('innerHTML') + '</strong></br><span style="color:green">Correct!</span>');
			setTimeout(function(){window.top.document.getElementById('blocker').style.display = 'none';localStorage['time']=new Date().getTime();},1000);
        }
        else drop.set('innerHTML', '<strong>' + e.drag.get('node').get('innerHTML') + '</strong></br><span style="color:red">Try again</span>');
    });
});